﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace IDE_week2_Forms_project
{
   
    public partial class Form1 : Form
    {
        Form2 form2 = new Form2();
        public Form1()
        {
            InitializeComponent();
        }

        private void button4_Click(object sender, EventArgs e)
        {
            form2.Visible = true;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Icon=Properties.Resources.icon1;



        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Icon=null;//返回到默认值
        }

        private void button3_Click(object sender, EventArgs e)
        {
        
        }
    }
}r
